export default {
  watch: {
    openDraw (status) {
      if (!status) {
        if (this.drawTitle === '历史记录') {
          this.historyObj = {
            pageIndex: 1,
            pageSize: 10
          }
        } else {
          this.$refs.formValidate.resetFields()
        }
      }
    },
    setModalStatus (status) {
      if (!status) {
        this.$refs.firmwareFormValidate.resetFields()
        if (!this.modalShow) {
          this.checkdList = []
          this.dataTree = []
        }
      }
    }
  }
}
